package com.student.mapper;


import com.student.pojo.Artists;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ArtistsMapper {
    /**
     * 这边是显示艺人所有信息
     *
     * @param artists
     * @return
     */
    List<Artists> artistsMessage(@Param("artists") Artists artists);

    /**
     * 这边是添加艺人信息
     *
     * @param artists
     * @return
     */
    Integer addArtistsMessage(@Param("artists") Artists artists);

    /**
     * 修改艺人信息
     * @param artists
     * @return
     */
    Integer updateArtistsMessage(@Param("artists") Artists artists);

    /**
     * 删除艺人信息
     * @param id
     * @return
     */
    Integer deleteArtists(@Param("id") Integer id);

    /**
     * 艺人信息
     * @return
     */
    List<Artists> getAllArtist();
}
